(function () {
  $(document).on("click", "td", function (e) {
    // e.preventDefault();
    var val = "";
    var that = $(this);
    var obj = that[0];
    var $pay = $('#pay');
    val = $pay.val() + that.html();
    if (obj.className === "pay-del") {
      val = $pay.val().substring(0, $pay.val().length - 1);
    } else if (obj.className === "all-pay-o") {
      return 0;
    }
    $pay.val(val);
  });
  //禁用手机自带键盘的弹出
  $("#pay").focus(function () {
    document.activeElement.blur();
  });
})();
